<?php

/**
 * JingYao-backend
 *
 * @link     https://gitee.com/wang-zhihui-release/jingyao-backend
 * @apiDocument https://gitee.com/wang-zhihui-release/jingyao-backend/wikis/
 */

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class ChangeTableSearchNoticeAddExpire extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::table('search_notices', function (Blueprint $table) {
            $table->integer('expire_time')->default(0)->comment('过期时间');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::table('search_notices', function (Blueprint $table) {
            $table->dropColumn('expire_time');
        });
    }
}
